/*
 * @Author: wrh123 482597539@qq.com
 * @Date: 2024-01-10 15:02:49
 * @LastEditors: wrh123 482597539@qq.com
 * @LastEditTime: 2024-01-19 08:24:01
 * @FilePath: /vue-admin/src/api/user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 登录函数
/**
 * @description: 登录函数
 * @param {*} data { mobile,password}
 * @return {*} promise
 */
export function loginAPI(data) {
  return request({
    url: '/employee/login',
    method: 'POST',
    data
  })
}
